package com.weitu.occupationalHealth.phyData.service.impl;

import com.weitu.occupationalHealth.phyData.entity.Diagnosis;
import com.weitu.occupationalHealth.phyData.mapper.DiagnosisMapper;
import com.weitu.occupationalHealth.phyData.service.DiagnosisService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DiagnosisServiceImpl implements DiagnosisService {
    @Autowired
    private DiagnosisMapper diagnosisMapper;

    public Diagnosis selectById(String id) {
        return this.diagnosisMapper.selectById(id);
    }

    @Override
    public int deleteById(String id) {
        return this.diagnosisMapper.deleteById(id);
    }

    @Override
    public int updateByIdSelective(Diagnosis record) {
        return this.diagnosisMapper.updateByIdSelective(record);
    }

    @Override
    public int updateById(Diagnosis record) {
        return this.diagnosisMapper.updateById(record);
    }

    @Override
    public int insert(Map record) {
        return this.diagnosisMapper.insert(record);
    }

    @Override
    public int insertSelective(Diagnosis record) {
        return this.diagnosisMapper.insertSelective(record);
    }
}